<?php
class LangPack{

	/**
	 * @var IDictHelper
	 */
	static public $dictHelper;
	static public $language;

	static public $system='default';
	static public $module='default';

	static public function getContent($label, $addtional_information = array(), $module=null, $system=null){
		$module = is_null($module)?(self::$module):$module;
		$system = is_null($system)?(self::$system):$system;

		$content = self::$dictHelper->getLabel($label, $module, $system, self::$language);

		if(is_null($content)){

			return self::$language.'.'.$system.'.'.$module.'.'.$label;
		}else{
			return $content;
		}	
	}

	static public function getArray($label, $addtional_information = array(), $module=null, $system=null){
		$arr = self::$dictHelper->getArray($label, $module, $system, self::$language);
		if(is_null($arr) && !is_array($arr)){
	
			return array($label.'_1' => $label. '_val1', $label.'_2' => $label. '_val2');
		}else{
			return $arr;
		}
	}
}
